//连接mongoose
var mongoose = require('mongoose');


// 创建骨架
const userinfo = mongoose.Schema({  
  photo:String,
  username:String,
  sex:String,
  year:String,
  month:String,
  day:String,
  city:String,
  phone:String
})

// 创建模型
const userinfoSchema = mongoose.model('userinfos', userinfo);

module.exports = userinfoSchema;